﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SAM.Framework.Repository.Repositories.Pager
{
    [Serializable]
    /// <summary>
    /// 分页结果集返回类型
    /// </summary>
    public class PageResult<TEntity>
    {
        /// <summary>
        /// 总记录条数
        /// </summary>
        public long Total { get; set; }

        /// <summary>
        /// 当前页码
        /// </summary>
        public int PageIndex { get; set; }

        /// <summary>
        /// 页大小
        /// </summary>
        public int PageSize { get; set; }

        /// <summary>
        /// 获取的数据列表
        /// </summary>
        public IEnumerable<TEntity> Datas { get; set; }
    }
}
